/* vim:set et sts=4: */
/* IBust - IBus with Traditional interface
 * Copyright(c) 2013 Daniel Sun
 * Copyright (C) 2008-2010 Peng Huang <shawn.p.huang@gmail.com>
 * Copyright (C) 2008-2010 Red Hat, Inc.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the
 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 * Boston, MA 02111-1307, USA.
 */
/**
 * SECTION: ibustversion
 * @short_description: Current version of IBust.
 * @stability: Stable
 *
 * IBustVersion shows the current IBust version.
 */

#ifndef __IBUST_VERSION_H_
#define __IBUST_VERSION_H_
/* compile time version
 */
/**
 * IBUST_MAJOR_VERSION:
 *
 * IBust major version.
 */
#define IBUST_MAJOR_VERSION				(1)

/**
 * IBUST_MINOR_VERSION:
 *
 * IBust minor version.
 */
#define IBUST_MINOR_VERSION				(5)

/**
 * IBUST_MICRO_VERSION:
 *
 * IBust micro version.
 */
#define IBUST_MICRO_VERSION				(1)

/**
 * IBUST_CHECK_VERSION:
 * @major: Major version of ibust.
 * @minor: Minor version of ibust.
 * @micro: Micro version of ibust.
 *
 * Check whether the current IBust version is equal to or greater than
 * given major.minor.micro.
 */
#define	IBUST_CHECK_VERSION(major,minor,micro)	\
    (IBUST_MAJOR_VERSION > (major) || \
     (IBUST_MAJOR_VERSION == (major) && IBUST_MINOR_VERSION > (minor)) || \
     (IBUST_MAJOR_VERSION == (major) && IBUST_MINOR_VERSION == (minor) && \
      IBUST_MICRO_VERSION >= (micro)))

#endif

